//
//  SINAMsgItemModel.m
//  sinashebao
//
//  Created by  androidlongs on 2017/12/29.
//  Copyright © 2017年  androidlongs. All rights reserved.
//

#import "SINAMsgItemModel.h"

@implementation SINAMsgItemModel

-(instancetype)initWithDict:(NSDictionary *)dict{
    if ([super init]) {
        self.msgContent=dict[@"content"];
        self.time=dict[@"createtime"];
        
        self.msgId=dict[@"id"];
        self.msgTitle=dict[@"title"];
        
        self.msgCreateUserId=dict[@"createuser"];
        self.msgType=dict[@"messagetype"];
        self.msgTypeName=dict[@"messagetypename"];
        
        _createtime=dict[@"createtime"];
        _messagetype=dict[@"messagetype"];
        _messagetypename=dict[@"messagetypename"];
        _title=dict[@"title"];
        
        _content=dict[@"content"];
        //发布者name
        _createusername=dict[@"createusername"];
        //头像
        _createuseravatar=dict[@"createuseravatar"];
        _createuseruuid=dict[@"createuseruuid"];
    }
    return self;
}
+(instancetype)msgItemWithDict:(NSDictionary *)dict{
    return [[self alloc]initWithDict:dict];
}
@end
